package org.meteorshower.controller;

import com.baomidou.mybatisplus.extension.service.IService;
import org.meteorshower.domain.Admin;
import org.meteorshower.service.IAdminService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

@RestController
@ResponseBody
@RequestMapping("/api/admin")
public class AdminController extends BaseController<Admin>{

    private final IAdminService adminService;

    @Autowired
    public AdminController(IAdminService adminService) {
        this.adminService = adminService;
    }

    @Override
    public IService<Admin> getService() {
        return adminService;
    }
}
